<template>
  <el-container>
    <el-header class="el-header">
      <span>{{ title }}</span>
      <slot name="add"></slot>
    </el-header>
    <el-main>
      <slot></slot>
    </el-main>
  </el-container>
</template>

<script setup>
defineProps({
  title: {
    required: true,
    type: String
  }
})
</script>

<style scoped lang="less">
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px rgba(153, 153, 153, 0.1) solid;
}
</style>
